package com.autologistics.service;

import java.util.List;

import com.autologistics.dao.UserDao;
import com.autologistics.dao.UserInfoDao;
import com.autologistics.model.User;

public class UserInfoServiceImpl implements UserInfoService{
	UserInfoDao userInfoDao;
	
	public UserInfoDao getUserInfoDao() {
		return userInfoDao;
	}
	public void setUserInfoDao(UserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}
	
	public List<User> listAll(){
		return userInfoDao.listAll();
	}
	public User getById(int id){
		return userInfoDao.getById(id);
	}
	public User getByAccountPwd(String ac,String pwd){
		return userInfoDao.getByAccountPwd(ac, pwd);
	}
	public void updateUser(User user){
		userInfoDao.updateUser(user);
	}
}
